<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<style>
		#frame {
			position: absolute;
			width: 520px;
			height: 280px;
			overflow: hidden;
			border-radius: 5px
		}

		#dis {
			position: absolute;
			left: -50px;
			top: -10px;
			opacity: .5
		}

		#dis li {
			display: inline-block;
			width: 200px;
			height: 20px;
			margin: 0 50px;
			float: left;
			text-align: center;
			color: #fff;
			border-radius: 10px;
			background: #000
		}

		#photos img {
			float: left;
			width: 520px;
			height: 280px
		}

		#photos {
			position: absolute;
			z-index: 9;
			width: calc(520px * 5); /*---修改图片数量的话需要修改下面的动画参数*/
		}

		.play {
			animation: ma 10s ease-in-out 1s infinite alternate;
		}

		@keyframes ma {
			0%, 20% {
				margin-left: 0px;
			}
			20%, 40% {
				margin-left: -520px;
			}
			40%, 60% {
				margin-left: -1040px;
			}
			60%, 80% {
				margin-left: -1560px;
			}
			80%, 100% {
				margin-left: -2080px;
			}

		}
	</style>
</head>
<body>
<div id="frame">
	<div class="play" id="photos">
		<img src="轮播/1.jpg">
		<img src="轮播/2.jpg">
		<img src="轮播/3.jpg">
		<img src="轮播/4.jpg">
		<img src="轮播/5.jpg">

	</div>
</div>
</body>
</html>